/* author: Mariana Horita
   mariana.horita@gmail.com
   file: myButton.cs*/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;

namespace Resolucao
{
    public class MyButton : Button
    {
        public int Red
        {
            get
            {
                return this.BackColor.R;
            }
            set
            {
                this.BackColor = Color.FromArgb(value, this.BackColor.G, this.BackColor.B);
            }
        }

        public int Green
        {
            get
            {
                return this.BackColor.G;
            }
            set
            {
                this.BackColor = Color.FromArgb(this.BackColor.R, value, this.BackColor.B);
            }
        }

        public int Blue
        {
            get
            {
                return this.BackColor.B;
            }
            set
            {
                this.BackColor = Color.FromArgb(this.BackColor.R, this.BackColor.G, value);
            }
        }

        public MyButton()
        {
            this.Size = new Size(50, 25);
        }

    }
}
